import request from '@/utils/request'
import { getRequest, postRequest, dataTypes }  from '@/api/api'

/**
 * 用户登出
 * @returns {Promise}
 */
export function logout() {
  return request({
    url:  '/api/auth/logout',
    method: 'post'
  })
}

/**
 * 用户登录
 */
export function login(loginId,password){

   return request({
    url: '/api/user/LoginSystem',
    method: 'get',
    params: {
      loginId: loginId,
      password: password
    }
  })
}



/**
 * 获取用户信息
 * @returns {Promise}
 */
export function getUserInfo() {
  return request({
    url: '/api/user/info',
    method: 'get'
  })
} 